import request from '@/utils/request'

// 查询开始审核列表
export function listRecord(query) {
  return request({
    url: '/demo3/record/list',
    method: 'get',
    params: query
  })
}

// 查询开始审核详细
export function getRecord(checkRecordId) {
  return request({
    url: '/demo3/record/' + checkRecordId,
    method: 'get'
  })
}

// 新增开始审核
export function addRecord(data) {
  return request({
    url: '/demo3/record',
    method: 'post',
    data: data
  })
}

// 修改开始审核
export function updateRecord(data) {
  return request({
    url: '/demo3/record',
    method: 'put',
    data: data
  })
}

// 删除开始审核
export function delRecord(checkRecordId) {
  return request({
    url: '/demo3/record/' + checkRecordId,
    method: 'delete'
  })
}
